package ${package.Service};

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
import java.util.List;

/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
    interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
    public interface ${table.serviceName}{

    /**
    * 添加信息
    * @param entity
    * @return
    */
    int add(${entity} entity);

    /**
    * 编辑信息
    * @param entity
    * @return
    */
    int update(${entity} entity);

    /**
    * 获取列表信息
    * @param queryWrapper
    * @return
    */
    List<${entity}> selectList(Wrapper<${entity}> queryWrapper);

    /**
    * 分页获取列表信息
    * @return
    */
    IPage<${entity}> selectPage(Page page, Wrapper<${entity}> queryWrapper);

    /**
    * 批量删除商品
    * @param ids
    * @return
    */
    int deleteBatchIds(Integer[] ids);
    }
</#if>


